<!doctype HTML public "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- Click to Convert 5.2: Anything to HTML -->
<!-- http://www.clicktoconvert.com -->

<html>
<head>
<title>gravityboxscheduleuserguide - page 155 of 234</title>
<meta http-equiv=content-type content=text/html;charset=iso-8859-1>
<meta name="Generator" content="Click to Convert">

<!--Start of page styles-->
<STYLE TYPE="text/css">
<!--
 /* Foreground Image Styles */

 /* Position Styles */
 .ts155p0{position:absolute;left:106px;top:97px;}
 .ts155p1{position:absolute;left:352px;top:97px;}
 .ts155p3{position:absolute;left:665px;top:97px;}
 .ts155p7{position:absolute;left:106px;top:113px;}
 .ts155p8{position:absolute;left:706px;top:1026px;}
 .ts155p9{position:absolute;left:331px;top:1044px;}
 .ts155p13{position:absolute;left:106px;top:146px;}
 .ts155p15{position:absolute;left:106px;top:183px;}
 .ts155p17{position:absolute;left:106px;top:201px;}
 .ts155p18{position:absolute;left:106px;top:220px;}
 .ts155p20{position:absolute;left:106px;top:238px;}
 .ts155p21{position:absolute;left:106px;top:257px;}
 .ts155p23{position:absolute;left:106px;top:276px;}
 .ts155p24{position:absolute;left:106px;top:294px;}
 .ts155p26{position:absolute;left:106px;top:312px;}
 .ts155p27{position:absolute;left:106px;top:330px;}
 .ts155p30{position:absolute;left:106px;top:348px;}
 .ts155p32{position:absolute;left:106px;top:366px;}
 .ts155p34{position:absolute;left:106px;top:384px;}
 .ts155p36{position:absolute;left:106px;top:402px;}
 .ts155p38{position:absolute;left:106px;top:421px;}
 .ts155p40{position:absolute;left:106px;top:439px;}
 .ts155p42{position:absolute;left:106px;top:457px;}
 .ts155p44{position:absolute;left:106px;top:475px;}
 .ts155p45{position:absolute;left:106px;top:493px;}
 .ts155p47{position:absolute;left:106px;top:511px;}
 .ts155p48{position:absolute;left:106px;top:530px;}
 .ts155p50{position:absolute;left:106px;top:548px;}
 .ts155p51{position:absolute;left:106px;top:567px;}
 .ts155p54{position:absolute;left:106px;top:585px;}
 .ts155p56{position:absolute;left:106px;top:603px;}
 .ts155p57{position:absolute;left:106px;top:622px;}
 .ts155p58{position:absolute;left:106px;top:640px;}
 .ts155p61{position:absolute;left:106px;top:659px;}
 .ts155p62{position:absolute;left:106px;top:678px;}
 .ts155p63{position:absolute;left:106px;top:696px;}
 .ts155p65{position:absolute;left:106px;top:714px;}
 .ts155p67{position:absolute;left:106px;top:732px;}
 .ts155p69{position:absolute;left:106px;top:751px;}
 .ts155p70{position:absolute;left:106px;top:769px;}
 .ts155p72{position:absolute;left:106px;top:787px;}
 .ts155p73{position:absolute;left:106px;top:806px;}
 .ts155p76{position:absolute;left:106px;top:824px;}
 .ts155p77{position:absolute;left:106px;top:842px;}
 .ts155p79{position:absolute;left:106px;top:879px;}
 .ts155p80{position:absolute;left:106px;top:898px;}
 .ts155p81{position:absolute;left:106px;top:916px;}
 .ts155p84{position:absolute;left:106px;top:934px;}

 /* Font Styles */
 .ft0p155{font-style:normal;font-weight:bold;font-size:13px;font-family:arial,sans-serif;color:#000000;}
 .ft1p155{font-weight:normal;}
 .ft2p155{font-style:normal;font-weight:normal;font-size:13px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft3p155{font-style:normal;font-weight:normal;font-size:16px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft4p155{font-style:normal;font-weight:bold;font-size:11px;font-family:arial,sans-serif;color:#000000;}
 .ft5p155{font-style:normal;font-weight:bold;font-size:21px;font-family:arial,sans-serif;color:#808080;}
 .ft6p155{font-style:normal;font-weight:normal;font-size:16px;font-family:arial,sans-serif;color:#000000;}
 .ft7p155{font-style:normal;font-weight:normal;font-size:16px;font-family:"courier new",courier,monospace;color:#000000;}

 /* Background Style */
 .styleBackground155{position:absolute;left:97px;top:255px}

 /* Navigation Styles */
 .styleNavBarTop{position:absolute;left:0px;top:2px}
 .nb{position:absolute;left:2px;top:0px}
 .nbs{position:absolute;left:0px;top:0px}
 .nbe{position:absolute;left:836px;top:0px}
 .styleNavBarBot{position:absolute;left:0px;top:1117px}
-->
</STYLE>
<!--End of page styles-->

</head>
<body bgcolor="#ffffff" text="#000000" link="#0000FF" Vlink="#660099">

<table id="pageTable" width="836" STYLE="position: relative; left: auto; top: auto;"><tr><td>
<div class=nbs><img src="./navbarstart.gif" width="2" height="30"></div>
<div class=nb><img src="./navbar.gif" width="836" height="30" alt="Navigation bar"></div>
<div class=nbe><img src="./navbarend.gif" width="2" height="30"></div>
<div class=styleNavBarTop>
<table width="834" height="26" border="0" cellspacing="0">
  <tr align="left">
    <td width="4">&nbsp;</td>
    <td width="25" align="center"><a href="http://www.gravitybox.com" target="_parent"><img src="./home.gif" border="0" alt="Home"></a></td>
    <td width="25" align="center"><a href="#" onClick="window.open('./print.html','Printing','width=300,height=100,toolbar=no,directories=no');return false;"><img src="./print.gif" border="0" alt="Print document"></a></td>
    <td width="10" align="center"><img src="./separator.gif" border="0"></td>
    <td width="18" align="center"><a href="./index1.html"><img src="./start.gif" width="18" height="14" border="0" alt="Start"></a></td>
    <td width="18" align="center"><a href="./index154.html"><img src="./back.gif" width="14" height="14" border="0" alt="Previous page"></a></td>
    <td width="80" valign="middle"><table width="100%" height="16" border="0" cellspacing="1" bgcolor="#ACA899"><tr><td align="center" bgcolor="#ffffff"><font face=verdana,arial,sans-serif><font size="1">&nbsp;155 of 234&nbsp;</font></font></td></tr></table></td>
    <td width="18" align="center"><a href="./index156.html"><img src="./forward.gif" width="14" height="14" border="0" alt="Next page"></a></td>
    <td width="18" align="center"><a href="./index234.html"><img src="./end.gif" width="18" height="14" border="0" alt="End"></a></td>
    <td width="620">&nbsp;</td>
  </tr>
</table>
<p>
</div>
<nobr>
<div class=styleBackground155><img src="./background155.png" width="633" height="800" border="0" alt=""></div>
<div class=ts155p0><span class="ft0p155"> </span></div>
<div class=ts155p1><span class="ft0p155">Gravitybox Schedule Primer<span class="ft1p155"> </span></span></div>
<div class=ts155p3><span class="ft0p155">Page 153&nbsp; </span></div>
<div class=ts155p7><span class="ft2p155"> </span></div>
<div class=ts155p8><span class="ft3p155"> </span></div>
<div class=ts155p9><span class="ft4p155">1998&#45;2004 Gravitybox Software LLC<span class="ft3p155"> </span></span></div>
<div class=ts155p13><span class="ft5p155">Notes </span></div>
<div class=ts155p15><span class="ft6p155">We will start by adding notes, since this is the simplest thing to do. A note object is </span></div>
<div class=ts155p17><span class="ft6p155">exactly what it sounds like, apiece of text. The notes form is an MDI child and loads the </span></div>
<div class=ts155p18><span class="ft6p155">notes from the API when the form loads. </span></div>
<div class=ts155p20><span class="ft6p155"> </span></div>
<div class=ts155p21><span class="ft7p155">Private Sub Form_Load() </span></div>
<div class=ts155p23><span class="ft7p155"> </span></div>
<div class=ts155p24><span class="ft7p155">Dim oNote As CNoteEl </span></div>
<div class=ts155p26><span class="ft7p155"> </span></div>
<div class=ts155p27><span class="ft7p155">&nbsp; frmMDI.mnuNote.Visible = True </span></div>
<div class=ts155p30><span class="ft7p155">&nbsp; Call frmMDI.SetStatus(oNotes.Count &#38; &#34; Items&#34;) </span></div>
<div class=ts155p32><span class="ft7p155">&nbsp;&nbsp; </span></div>
<div class=ts155p34><span class="ft7p155">&nbsp; Call oNotes.Load(ThisUser) </span></div>
<div class=ts155p36><span class="ft7p155">&nbsp; For Each oNote In oNotes </span></div>
<div class=ts155p38><span class="ft7p155">&nbsp;&nbsp;&nbsp; Call lvwNote.ListItems.Add(, oNote.UniqueKey, _ </span></div>
<div class=ts155p40><span class="ft7p155">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; oNote.Text, &#34;Note&#34;) </span></div>
<div class=ts155p42><span class="ft7p155">&nbsp; Next </span></div>
<div class=ts155p44><span class="ft7p155"> </span></div>
<div class=ts155p45><span class="ft7p155">End Sub </span></div>
<div class=ts155p47><span class="ft6p155"> </span></div>
<div class=ts155p48><span class="ft6p155">The code above uses the object &#147;ThisUser&#148; to load the oNotes object. It then loops </span></div>
<div class=ts155p50><span class="ft6p155">through the collection of notes and inserts each into the notes ListView. When the user </span></div>
<div class=ts155p51><span class="ft6p155">selects a displayed note on the screen by double&#45;clicking or pressing &#60;Enter&#62;, a note </span></div>
<div class=ts155p54><span class="ft6p155">property window will appear that allows the user to modify the note text. After the user </span></div>
<div class=ts155p56><span class="ft6p155">modifies the text, he may press the window&#146;s close button. In the QueryUnload event </span></div>
<div class=ts155p57><span class="ft6p155">the text box&#146;s value will be used to set the note object&#146;s text value. This will ensure that </span></div>
<div class=ts155p58><span class="ft6p155">the next time the notes collection is saved this value will be committed to file. </span></div>
<div class=ts155p61><span class="ft6p155"> </span></div>
<div class=ts155p62><span class="ft7p155">Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As </span></div>
<div class=ts155p63><span class="ft7p155">Integer) </span></div>
<div class=ts155p65><span class="ft7p155">&nbsp;&nbsp; </span></div>
<div class=ts155p67><span class="ft7p155">&nbsp; Note.Text = txtNote.Text&nbsp;&nbsp; </span></div>
<div class=ts155p69><span class="ft7p155"> </span></div>
<div class=ts155p70><span class="ft7p155">End Sub </span></div>
<div class=ts155p72><span class="ft6p155"> </span></div>
<div class=ts155p73><span class="ft6p155">This is essentially the entire functionality of the notes portion. </span></div>
<div class=ts155p76><span class="ft6p155"> </span></div>
<div class=ts155p77><span class="ft5p155">Contacts </span></div>
<div class=ts155p79><span class="ft6p155">The next part of the program is to manage contacts. This is only a little more </span></div>
<div class=ts155p80><span class="ft6p155">complicated than the notes. A note has one field, Text that defines an object. A contact </span></div>
<div class=ts155p81><span class="ft6p155">object has many fields. A contact is defined a set of information that describes a person. </span></div>
<div class=ts155p84><span class="ft6p155"> </span></div>
<div class=styleNavBarBot>
<table width="836" border="0" cellspacing="2">
  <tr></tr>
  <tr>
    <td width="118"><a href="http://www.purepage.com"><img src="./smalllogo.gif" width="118" height="46" border="0" alt="http://www.purepage.com"></a></td>
    <td></td>
  </tr>
</table>
</div>

</td></tr></table>

</body>
</html>
